import { prop, modelOptions } from '@typegoose/typegoose';
import { ApiProperty } from '@nestjs/swagger';

// 课时模型
@modelOptions({
  schemaOptions: {
    timestamps: true
  }
})
export class Episode {
  @ApiProperty({ description: '课时名称'})
  @prop()
  name: string

  @ApiProperty({ description: '文件-视频1'})
  @prop()
  file: string
}